<?php

/**
 * CourseFaculty form.
 *
 * @package    Amman to London
 * @subpackage form
 * @author     Adel Abu-Saif <adeljas@msn.com>
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class CourseFacultyForm extends BaseCourseFacultyForm
{
  public function configure()
  {
      
//      $this->widgetSchema['faculty_id']->setDefault($this->getUser()->getFromFilters('faculty_id'));
//      $this->widgetSchema['faculty_id']->setAttributes(array('style'=>'border:0','readonly'=>'readonly'));
      unset($this['faculty_id']);
      
  }
  
  public function save($con = null){
      $this->object->set('faculty_id',$this->getUser()->getFromFilters('faculty_id'));
      return parent::save($con);
  }

}
